import 'dart:convert';
import 'package:testlzhu/generated/json/base/json_field.dart';
import 'package:testlzhu/generated/json/test_list_entity.g.dart';

@JsonSerializable()
class TestListEntity {

	double? accountStatus;
	String? addType;
	String? addUser;
	String? address;
	double? addtime;
	String? adminName;
	String? adminPhone;
	double? adminUid;
	String? builder;
	String? buildingHeight;
	String? chargeName;
	String? city;
	double? cityid;
	String? contractor;
	String? createTime;
	List<TestListDeviceList>? deviceList;
	String? district;
	double? districtid;
	double? edittime;
	bool? experienceSite;
	String? fenceId;
	double? flowAmount;
	String? flowAmountCN;
	String? hkRegionCode;
	double? id;
	double? insureRenewal;
	double? insureSafe;
	double? insureType;
	double? isbuild;
	double? isdel;
	String? latitude;
	String? longitude;
	String? owner;
	String? province;
	double? provinceid;
	double? relaterCount;
	double? relaterType;
	String? siteHeader;
	String? siteName;
	double? siteRelaterType;
	double? siteStatus;
	String? siteType;
	String? updateTime;
	double? useFlowMonth;
	String? useFlowMonthCN;
	String? vertexes;
  
  TestListEntity();

  factory TestListEntity.fromJson(Map<String, dynamic> json) => $TestListEntityFromJson(json);

  Map<String, dynamic> toJson() => $TestListEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class TestListDeviceList {

	String? deviceType;
	String? deviceName;
	double? onLineNum;
	double? offLineNum;
	double? unusualNum;
  
  TestListDeviceList();

  factory TestListDeviceList.fromJson(Map<String, dynamic> json) => $TestListDeviceListFromJson(json);

  Map<String, dynamic> toJson() => $TestListDeviceListToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}